#ifndef SPYNET_NET_PACKET_HEADER_H_
#define SPYNET_NET_PACKET_HEADER_H_

namespace Net
{
	struct PacketHeader
	{
	public:
		enum
		{
			PACKET_HEAD_SIZE = 5,
			PACKET_MAX_SIZE = 4*1024,
		};

		enum kPacketType
		{
			PACKET_TYPE_NORMAL = 0,
			PACKET_TYPE_PING = 1,
			PACKET_TYPE_SSL = 2,
		};

	public:
		PacketHeader();
		virtual ~PacketHeader();

	public:
		uchar  packet_type_;
		ushort packet_size_; //packet whole size, include packethead
		ushort packet_stream_serialize_num_;
		
	};
}

#endif